In [18]:
from scipy import stats
import numpy as np
from matplotlib import pyplot as plt
Konvoluce dvou nez. normálních veličin¶
In [15]:
x = stats.norm.rvs(loc=2, size=10**6)
y = stats.norm.rvs(loc=3, size=10**6)
In [17]:
plt.subplot(2, 1, 1)
plt.hist(x, bins=100);
plt.subplot(2, 1, 2)
plt.hist(x+y, bins=100);